use num_bigint::BigInt;

pub fn convert_base(num_str: &str, to_base: u32) -> String {
    let num_base: Vec<&str> = num_str.split(['(', ')']).take(2).collect();
    let num = BigInt::parse_bytes(num_base[0].as_bytes(), num_base[1].parse().unwrap()).unwrap();
    return num.to_str_radix(to_base);
}
